Run below command in RMAN prompt. You must be connected to a target database and database is mount exclusive and not open. You need to start RESTRICT mode.
RMAN> connect target /
connected to target database: TEST (DBID=233344476, not open)
RMAN> SQL 'ALTER SYSTEM ENABLE RESTRICTED SESSION';
using target database control file instead of recovery catalog
sql statement: ALTER SYSTEM ENABLE RESTRICTED SESSION
RMAN> DROP DATABASE INCLUDING BACKUPS;
database name is "TEST" and DBID is 233344476
Do you really want to drop all backups and the database (enter YES or NO)? YES
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=421 device type=DISK
specification does not match any backup in the repository
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=421 device type=DISK
specification does not match any datafile copy in the repository
specification does not match any control file copy in the repository
specification does not match any control file copy in the repository
specification does not match any archived log in the repository
database name is "TEST" and DBID is 233344476
database dropped